-module(dbtest).
-export([start/0]).

start() ->
    Host = "localhost",
    User = "root",
    Password = "root",
    Database = "mydatabase",
    
    {ok, Pid} = mysql:start_link([{host, Host}, {user, User}, {password, Password}]),
    io:format("Connected to MySQL server.~n"),
    ok = mysql:query(Pid, "CREATE DATABASE IF NOT EXISTS rrrrrr"),
    io:format("Created~n").
 %   Query = "CREATE DATABASE IF NOT EXISTS " ++ Database.
  %  mysql:query(Query, []).

